package com.aaa.PController;

import com.aaa.Entity.Film;
import com.aaa.Service.FilmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class FilmController {
    @Autowired
    private FilmService filmService;
    @RequestMapping("/film")
    public String select(Model model){
        List<Film> selects = filmService.selects();
        model.addAttribute("select",selects);
        return "select";
    }
}
